package com.hgw.Demo02CommandPattern.CommandPattern;

/**
 * Data time:2021/12/16 18:53
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class ConcreteCommand extends Command{
    private Receiver receiver;      // 维持一个对请求接收者对象的引用

    @Override
    public void execute() {
        receiver.action();      // 调用请求接受者的业务处理方法 action()
    }
}
